package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.ScoreDisplayRulesTeacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ScoreDisplayRulesTeacherRepository extends JpaRepository<ScoreDisplayRulesTeacher,Integer> {

    @Query(value = "select id,teacher_id,score_display_rules_id from score_display_rules_teacher where teacher_id=?1 ",nativeQuery = true)
    ScoreDisplayRulesTeacher findByTeacherId(Integer teacherId);
}
